//
//  TDCheckPaySelPayTypeCell.m
//  TBRentClient
//
//  Created by tonbright on 2018/6/12.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "TDCheckPaySelPayTypeCell.h"

@implementation TDCheckPaySelPayTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selTag = 10;
}

- (IBAction)selPaytypeBtnClick:(UIButton *)sender {
    if (sender.tag == self.selTag) {
        return;
    }
    if (sender.tag == 10) {
        //微信的被选中,支付宝的没被选中
        _imv_wx.image = [UIImage imageNamed:@"试驾圆选中"];
        _imv_alipay.image = [UIImage imageNamed:@"试驾圆未选中"];
    }
    else {
        //微信的取消选中,支付宝的被选中
        _imv_wx.image = [UIImage imageNamed:@"试驾圆未选中"];
        _imv_alipay.image = [UIImage imageNamed:@"试驾圆选中"];
    }
    self.selTag = sender.tag;
    if (self.checkSelPayTypeBtnClickBlock) {
        self.checkSelPayTypeBtnClickBlock(sender.tag);
    }
}


@end
